home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / CIncludes / Folders.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-17  |  1.8 KB  |  64 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Folders.h
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. */
  11.  
  12. #ifndef __FOLDERS__
  13. #define __FOLDERS__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. #endif
  18.  
  19. #ifndef __FILES__
  20. #include <Files.h>
  21. #endif
  22.  
  23.  
  24. enum {
  25.  
  26.  kOnSystemDisk = 0x8000
  27.  
  28.  
  29. #define kCreateFolder true
  30. #define kDontCreateFolder false
  31.  
  32. #define kSystemFolderType                'macs'        /* the system folder */
  33. #define kDesktopFolderType                'desk'        /* the desktop folder; objects in this folder show on the desk top. */
  34. #define kTrashFolderType                'trsh'        /* the trash folder; objects in this folder show up in the trash */
  35. #define kWhereToEmptyTrashFolderType    'empt'        /* the "empty trash" folder; Finder starts empty from here down */
  36.  
  37. #define kPrintMonitorDocsFolderType        'prnt'        /* Print Monitor documents */
  38.  
  39. #define kStartupFolderType                'strt'        /* Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here */
  40. #define kAppleMenuFolderType            'amnu'        /* Finder objects to put into the Apple menu go here */
  41. #define kControlPanelFolderType         'ctrl'        /* Control Panels go here (may contain INITs) */
  42. #define kExtensionFolderType            'extn'        /* Finder extensions go here */
  43. #define    kFontsFolderType                'font'        /* Fonts go here */
  44. #define kPreferencesFolderType            'pref'        /* preferences for applications go here */
  45. #define kTemporaryFolderType            'temp'        /* temporary files go here (deleted periodically, but don't rely on it.) */
  46. };
  47.  
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51. #if SystemSevenOrLater
  52. pascal OSErr FindFolder(short vRefNum,OSType folderType,Boolean createFolder,
  53.  short *foundVRefNum,long *foundDirID)
  54.  = {0x7000,0xA823}; 
  55. #else
  56. pascal OSErr FindFolder(short vRefNum,OSType folderType,Boolean createFolder,
  57.  short *foundVRefNum,long *foundDirID);
  58. #endif
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62.  
  63. #endif
  64.